<div class="navbar">
        <div class="navbar-inner">
            <div class="navbar-container">
                <!-- Navbar Barnd -->
                <div class="navbar-header pull-left">
                    <a href="/index.htm" class="navbar-brand">
                        <small>
                            <img src="../assets/img/logo.png" alt="">
                        </small>
                    </a>
                </div>
                <!-- /Navbar Barnd -->
                <!-- Sidebar Collapse -->
                <div class="sidebar-collapse" id="sidebar-collapse">
                    <i class="collapse-icon fa fa-bars"></i>
                </div>
                <!-- /Sidebar Collapse -->
                <!-- Account Area and Settings --->
                <!-- 头部导航 -->
                <div class="navbar-header pull-left">
                    <div class="navbar-account">
                    </div>
                </div>
                <!-- 头部导航结束 -->
                <div class="navbar-header pull-right">
                    <div class="navbar-account">
                        <ul class="account-area">
                            <li>
                                <a title="钢联主页" href="http://www.mysteel.com/" target="_blank">
                                    <i class="icon glyphicon glyphicon-home"></i>
                                </a>
                            </li>
                            
                           <li class="margin-left-10"><span class="white">用户：$!{session.getAttribute('SESSION_USER_LOGIN_CONTEXT').name}</span>&nbsp;&nbsp;&nbsp;&nbsp; <a href="/cmsweb/logout.ms" class="exit-area">退出</a></li>
                        </ul>
                        <!-- Settings -->
                    </div>
                </div>
                <!-- /Account Area and Settings -->
            </div>
        </div>
    </div>
    
<script type="text/javascript">
$.ajaxSetup({
    contentType:"application/x-www-form-urlencoded;charset=utf-8",   
    complete:function(XMLHttpRequest,textStatus){
    	if(XMLHttpRequest.getResponseHeader){
      		var sessionstatus=XMLHttpRequest.getResponseHeader("sessionstatus"); //通过XMLHttpRequest取得响应头，sessionstatus，  
	         if(sessionstatus=="timeout"){ 
	           alert("您登录已超时,请重新登录！");
	           //如果超时就处理 ，指定要跳转的页面  
	           window.location.replace("/");   
	         }else if(sessionstatus=="noauth"){ 
	           alert("对不起，您没有该操作权限！");
		     }
       		}
    	}
  });
</script>